package com.itita.ww2.web.server;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.itita.ww2.common.WebProxy;
import com.itita.ww2.common.WebResponse;
import com.itita.ww2.web.core.AbstractHttpServlet;

@SuppressWarnings("serial")
public class LandingAllRedisData extends AbstractHttpServlet {

	@Override
	protected String handleRequest(WebProxy webProxy, HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		boolean force = Boolean.valueOf(req.getParameter("force"));
		WebResponse ret = webProxy.landingAllRedisData(force);
		return ret.toJson();
	}

}
